package net.lainiao.mycost.dao;

import net.lainiao.mycost.bean.AuditHistory;
import net.lainiao.mycost.bean.ExpenseAccount;
import net.lainiao.mycost.bean.ExpenseDetails;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/3/22.
 */
@Repository
public interface IExpenseDAO {
    int addExpense(ExpenseAccount account);

    int addExpenseDeatils(ExpenseDetails deaExpenseDetails);

    List<ExpenseAccount> list(ExpenseAccount account);

    long getCount(ExpenseAccount account);

    ExpenseAccount getExpenseAccount(ExpenseAccount account);

    List<Map> getExpenseDetailsList(ExpenseAccount account);

    int addAuditHistory(AuditHistory history);

    int updateExpenseAccount(ExpenseAccount account);

    List<Map>  getAuditHistoryList(ExpenseAccount account);

    int deleteExpenseDetails(Integer expenseId);

    List<ExpenseAccount> getList(ExpenseAccount account);

    long getCountLong(ExpenseAccount account);

}
